var ns;
var app = new Vue({
    el: '#app',
    data: {
      ID:0,
      form:{},
    },
methods:{
  get_data:function(){
      var that = this;
      var opt = {
          action: 'setmessagereadandinfo',
          ID: that.ID,
      };
      ns.post(opt, function(succeed, data, err) {
        console.log(JSON.stringify(data));
          if (succeed) {
            if(data.status){
              that.form=data.info;
            }
          } else if (err) {
              api.toast({
                  msg: err,
                  duration: 2000,
                  location: 'bottom'
              });
          }
      })
  },
  }
});
apiready = function() {
    api.parseTapmode();
    ns = window.Foresight.Util;
    app.ID = api.pageParam.id;
    app.get_data();
};

